<?php
namespace PsiFramework\Applications\Bibliotheque\Classes\DAO;

import("Classes.DAO.AbstractDAO");
import("Applications.Bibliotheque.Classes.DAO.AuteurDAO");
import("Applications.Bibliotheque.Classes.DAO.RoleDAO");
import("Applications.Bibliotheque.Classes.Model.Auteur");
import("Applications.Bibliotheque.Classes.Model.Contribution");
import("Applications.Bibliotheque.Classes.Model.Oeuvre");
import("Applications.Bibliotheque.Classes.Model.Role");

use \PsiFramework\Classes\DAO\AbstractDAO;
use \PsiFramework\Applications\Bibliotheque\Classes\DAO\AuteurDAO;
use \PsiFramework\Applications\Bibliotheque\Classes\DAO\RoleDAO;
use \PsiFramework\Applications\Bibliotheque\Classes\Model\Auteur;
use \PsiFramework\Applications\Bibliotheque\Classes\Model\Contribution;
use \PsiFramework\Applications\Bibliotheque\Classes\Model\Oeuvre;
use \PsiFramework\Applications\Bibliotheque\Classes\Model\Role;

/**
 * Bibliotheque
 * Gestion de ma bibliothèque
 *
 * @author Rémi San
 * @version beta
 */

/**
 * Classe d'accès à une Contribution
 *
 * @package DAO
 */
class ContributionDAO extends AbstractDAO
{

    protected static $_singleton = null;

    /**
     * Function to be called instead of the constructor.
     *
     * @return ContributionDAO instance
     */
    public static function getInstance($objectParameters)
    {

        if (self::$_singleton==null) {
            self::$_singleton = new ContributionDAO($objectParameters);
        }

        return self::$_singleton;
    }
}
